package com.xzh.mallorderapi.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.xzh.mallorderspi.model.OrderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderItemMapper extends BaseMapper<OrderItem> {

    default List<OrderItem> findAll(OrderItem search){
        LambdaQueryWrapper<OrderItem> qw = Wrappers.lambdaQuery(search);
        return selectList(qw);
    }
}
